home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol E-12 / Vol E-12.iso / games / barbie / intro.swf / scripts / DefineButton2_43 / BUTTONCONDACTION on(release, dragOver).as < prev   
Text File  |  2012-05-21  |  1KB  |  36 lines

  1. on(release, dragOver){
  2.    stopDrag();
  3.    this.swapDepths(_root.codejump.codeMC.levelHeight++);
  4.    this._xscale -= _root.codejump.codeMC.growAmount;
  5.    this._yscale -= _root.codejump.codeMC.growAmount;
  6.    overPlace = this._droptarget.substring(17,this._droptarget.length - 1);
  7.    trace("overplace" + overPlace);
  8.    trace(this._droptarget);
  9.    if(overPlace == "codePlace")
  10.    {
  11.       trace("rrrrrrrr");
  12.       dropedName = this._droptarget.substring(17,this._droptarget.length);
  13.       dropedNumber = this._droptarget.substring(26,this._droptarget.length);
  14.       dropedNameX = eval("_root.codejump." + dropedName)._x;
  15.       dropedNameY = eval("_root.codejump." + dropedName)._y;
  16.       _root.codejump.codeMC.valueOfStuff(sendNumber,dropedNumber);
  17.       this._x = dropedNameX;
  18.       this._y = dropedNameY;
  19.    }
  20.    else
  21.    {
  22.       this._x = _root.codejump.codeMC.currentObjX[sendNumber];
  23.       this._y = _root.codejump.codeMC.currentObjY[sendNumber];
  24.       i = 0;
  25.       while(i < 4)
  26.       {
  27.          if(_root.codejump.codeMC.holder[i] == sendNumber)
  28.          {
  29.             trace("hell2o" + sendNumber);
  30.             _root.codejump.codeMC.holder[i] = "";
  31.          }
  32.          i++;
  33.       }
  34.    }
  35. }
  36.